<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script>
$(document).ready(function(){
		$('#chrcount').keyup(function(){
			var len = $('#chrcount').val();
			var char = len.length;	
			if(254-char == 0){
				}
			$('#chrcountlength').html(255-char);	
		});
	});
	
	$(document).ready(function(){
		$('#chrcount2').keyup(function(){
			var len = $('#chrcount2').val();
			var char = len.length;	
			if(254-char == 0){
				}
			$('#chrcountlength2').html(255-char);	
		});
	});
</script>

<div id="mws-container" class="clearfix">
<div class="container">
  <div class="mws-panel grid_8">
    <div class="mws-panel-header"> <span class="mws-i-24 i-list">Add Menu</span> </div>
    <div class="mws-panel-body">
      <div class="mws-form-inline"> 
		 <?php echo $form->create(array('action' => 'admin_menu','method'=>'post','class' => 'mws-form  validateform', 'enctype' => 'multipart/form-data')); ?>
        <div class="mws-form-row">
          <label class="input-label"> Menu Title&nbsp;</label>
          <div class="mws-form-item small"> 
			<?php echo $form->input('Menu.menu_title', array('type' => 'text' , 'class'=>'required', 'label' => false,'size'=>50)); ?>     </div>
        </div>
        <div class="mws-form-row">
           <label class="input-label"> Menu Description<em>*</em></label>
        <div class="mws-form-item 	small"> 
          <?php echo $form->input('Menu.menu_description', array('type' => 'textarea' , 'class'=>'', 'label' => false,'rows'=>3, 'cols' =>30)); ?>
        </div>
        </div>
        
        
        <div class="mws-form-row">
        <label class="input-label"> Published:</label>
        <div class="mws-form-item 	small"> 
			   <?php echo $form->input('Menu.published', array('options' => $published, 'selected' =>$published['1'], 'class' => 'dropbox','value' =>''.$published[1].'', 'label' => false,'empty' => false)); ?>
        </div>
        </div>
        
        <div class="mws-button-row">
          <input type="submit" class="mws-button black" value="Submit">
        </div>
        </form>
      </div>
    </div>
  </div>
</div>
